package com.kmzx.one.project.others.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

public class FansInfo {

    private String userId;
    private String nickName;
    private String avatar;
    private String regTime;
    private BigDecimal growths;
    private int levels;
    private String levelName;
    private BigDecimal needs;
    private String nextName;
    private Date com;

    private int child;



    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public BigDecimal getGrowths() {
        return growths;
    }

    public void setGrowths(BigDecimal growths) {
        this.growths = growths;
    }

    public int getLevels() {
        return levels;
    }

    public void setLevels(int levels) {
        this.levels = levels;
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public BigDecimal getNeeds() {
        return needs;
    }

    public void setNeeds(BigDecimal needs) {
        this.needs = needs;
    }

    public String getNextName() {
        return nextName;
    }

    public void setNextName(String nextName) {
        this.nextName = nextName;
    }

    public Date getCom() {
        return com;
    }

    public void setCom(Date com) {
        this.com = com;
    }

    public int getChild() {
        return child;
    }

    public FansInfo setChild(int child) {
        this.child = child;
        return this;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FansInfo fansInfo = (FansInfo) o;
        return levels == fansInfo.levels &&
                Objects.equals(userId, fansInfo.userId) &&
                Objects.equals(nickName, fansInfo.nickName) &&
                Objects.equals(avatar, fansInfo.avatar) &&
                Objects.equals(regTime, fansInfo.regTime) &&
                Objects.equals(growths, fansInfo.growths) &&
                Objects.equals(levelName, fansInfo.levelName) &&
                Objects.equals(needs, fansInfo.needs) &&
                Objects.equals(nextName, fansInfo.nextName) &&
                Objects.equals(com, fansInfo.com);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, nickName, avatar, regTime, growths, levels, levelName, needs, nextName, com);
    }
}
